#include "pch.h"
#include "CPoint2D.h"

CPoint2D::CPoint2D()
{
	x = y = 0;
	color = CRGB(0.0, 0.0, 0.0);
}

CPoint2D::~CPoint2D()
{
}

CPoint2D::CPoint2D(CPoint point, int r, int g, int b)
{
	x = point.x;
	y = point.y;

	color = CRGB(r, g, b);
}

CPoint2D::CPoint2D(CPoint2D & point)
{
	x = point.x;
	y = point.y;
	color = point.color;
}

void CPoint2D::operator=(CPoint2D& p)
{
	x = p.x;
	y = p.y;
	color = p.color;
}
